package classes
{
	
	import flash.events.EventDispatcher;
	import flash.net.NetConnection;
	
	import mx.controls.Alert;
	
	public class BasedServiceInteracter extends EventDispatcher
	{
		private var nConn:NetConnection;
		
		public function BasedServiceInteracter(_nc:NetConnection) {
			nConn = _nc;
		}
		
		public function getNetConnector():NetConnection {
			return nConn;
		}
		
		protected function statusResult(_status:Object):void {
			trace("Error occured." + _status.code + ":" + _status.application + ":" + _status.description);
			Alert.show("Error occured." + _status.code + ":" + _status.application + ":" + _status.description);
		}
	}
}
